import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Rect from '../views/Rect.vue'
import Circle from '../views/Circle.vue'
import Sprite from '../views/Sprite.vue'
import LoadQueue from '../views/LoadQueue.vue'
import AboutView from '../views/AboutView.vue'
import Bitmap from '../views/Bitmap.vue'
import MoveClip from '../views/MoveClip.vue'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/rect',
    name: 'rect',
    component: Rect
  },
  {
    path: '/circle',
    name: 'circle',
    component: Circle
  },
  {
    path: '/sprite',
    name: 'sprite',
    component: Sprite
  },
  {
    path: '/loadQueue',
    name: 'loadQueue',
    component: LoadQueue
  },
  {
    path: '/bitmap',
    name: 'bitmap',
    component: Bitmap
  },
  {
    path: '/moveclip',
    name: 'moveclip',
    component: MoveClip
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: AboutView
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
